home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Utils Divers 1 / Basic Black 1.4.1 / Source / BB.h next >
Text File  |  1994-07-21  |  3KB  |  74 lines

  1. /**********************************************************
  2.  * typedefs
  3.  **********************************************************/
  4.  
  5. typedef pascal short (*SEProcPtr) (EventRecord *);
  6. typedef pascal void (*ICProcPtr) (void);
  7. typedef pascal void (*DMBProcPtr) (void);
  8. typedef pascal void (*ERProcPtr) (Rect *);
  9. typedef pascal void (*EOProcPtr) (Rect *);
  10. typedef pascal void (*EGProcPtr) (RgnHandle);
  11. typedef pascal void (*STProcPtr) (void);
  12.  
  13. typedef struct {
  14.         char    privates[76];
  15.         long    randSeed;
  16.         BitMap  screenBits;
  17.         Cursor  arrow;
  18.         Pattern dkGray;
  19.         Pattern ltGray;
  20.         Pattern black;
  21.         Pattern white;
  22.         GrafPtr thePort;
  23.         long    qdend;
  24. } QDGlobals;
  25.  
  26. typedef struct PatchGlobals {
  27.     short            pgVersion;            // our version number
  28.     SEProcPtr        pgOldSE;            // address of old SystemEvent
  29.     ICProcPtr        pgOldIC;            // address of old InitCursor
  30.     DMBProcPtr        pgOldDMB;            // address of old DrawMenuBar
  31.     ERProcPtr        pgOldER;            // address of old EraseRect
  32.     EOProcPtr        pgOldEO;            // address of old EraseOval
  33.     EGProcPtr        pgOldEG;            // address of old EraseRgn
  34.     STProcPtr        pgOldST;            // address of old SystemTask
  35.     Boolean            pgSaverOn,            // Are we asleep?
  36.                     pgInSleepRect,        // Is the mouse in the sleep rect?
  37.                     pgMustSleep,        // Do we need to fall asleep now?
  38.                     pgMustWake,            // Do we need to wake up now?
  39.                     pgBouncingClock,    // Should there be a bouncing clock?
  40.                     pgMenubarKluge,        // Should we play with the menu bar?
  41.                     pgMustSave;            // Are we turned on?
  42.     short            pgSleepRect,        // index number of the sleep rect
  43.                     pgWakeRect,            // index number of the wake rect
  44.                     pgOldHeight,        // old menu bar height
  45.                     pgIntervalTime;        // time between ST maintenance runs
  46.     long            pgRefreshTime,        // ticks between refreshes
  47.                     pgLastAction,        // time of last user action
  48.                     pgLastCheck,        // time of last maintenance check
  49.                     pgIdleTicks,        // idle ticks before sleep
  50.                     pgLastRefresh;        // time of last refresh
  51.     Point            pgLastMouse;        // point where mouse was last seen
  52.     Rect            pgCorners[4];        // corners of the main screen (rects)
  53.     Pattern            pgForePat,            // foreground pattern
  54.                     pgBackPat;            // background pattern
  55.     PicHandle        pgClockBg;            // clock background picture
  56. } PatchGlobals, *PatchGlobalsPtr;
  57.  
  58. typedef struct PrefStructure {
  59.     short    version;                    // our version number
  60.     char    sleepNowCorner,                // sleep now corner
  61.             sleepNeverCorner,            // sleep never corner
  62.             idleTime;                    // idle time (seconds)
  63.     Boolean    bounceClock,                // show the clock?
  64.             saverOn;                    // screen saver on?
  65.     char    refreshSeconds;                // refresh time (seconds)
  66.     Boolean    showIcon,                    // show the startup icon?
  67.             fadeToWhite,                // fade to white?
  68.             zeroBar,                    // zero menubar?
  69.             eraseRectPatch,                // patch flags...
  70.             eraseOvalPatch,
  71.             eraseRgnPatch,
  72.             drawMenuBarPatch,
  73.             initCursorPatch;
  74. } PrefStructure, *PrefStructurePtr, **PrefStructureHandle;